#include<stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	int x,y,z;
	int find = 0;
	for(x = 1;x <= 9;x++) {
		for(y = 1;y <= 9;y++) {
			for(z = 1;z <= 9;z++) {
				if(x*100+y*10+z+y*100+z*10+z == n){
		             printf("%-4d%-4d%-4d\n",x,y,z);
		             find = 1;
			}
		}
   }
}
     if(!find)
	{
		printf("No Answer\n");
	}
	return 0;
}
